﻿// 文件路径：AyuBookmark.Common/Interfaces/IBookmarkManager.cs
using System.Threading.Tasks;
using AyuBookmark.Common.Models;

namespace AyuBookmark.Common.Interfaces
{
    /// <summary>
    /// 书签管理核心接口
    /// </summary>
    public interface IBookmarkManager
    {
        /// <summary>
        /// 设置浏览器活动状态
        /// </summary>
        void SetBrowserActiveState(bool isActive);

        /// <summary>
        /// 处理当前URL
        /// </summary>
        Task HandleCurrentUrl(string url);

        /// <summary>
        /// 获取当前活动书签
        /// </summary>
        Task<BookmarkInfo> GetActiveBookmark();

        /// <summary>
        /// 更新书签访问时间
        /// </summary>
        Task UpdateBookmarkAccessTime(int bookmarkId);
    }
}